#!/usr/bin/env node

const yargs = require('yargs')
const currentYear = (new Date()).getFullYear()

const argv = yargs
    .usage('Usage: <command> [options]')
    .options({
        'config': {
            describe: '自动构建Pages所需的配置文件，比如包含access_token、owner、repo字段。'
        }
    })
    .command(require('./build-pages'))
    .help('help')
    .version(require('./package.json').version)
    .epilog(`copyright lhtin@${currentYear}`)
    .argv
